import request from '@/utils/request'

// 线路价格表列表
export function apiLinePriceLists(params: any) {
    return request.get({ url: '/travel.line_price/lists', params })
}

// 添加线路价格表
export function apiLinePriceAdd(params: any) {
    return request.post({ url: '/travel.line_price/add', params })
}

// 编辑线路价格表
export function apiLinePriceEdit(params: any) {
    return request.post({ url: '/travel.line_price/edit', params })
}

// 删除线路价格表
export function apiLinePriceDelete(params: any) {
    return request.post({ url: '/travel.line_price/delete', params })
}

// 线路价格表详情
export function apiLinePriceDetail(params: any) {
    return request.get({ url: '/travel.line_price/detail', params })
}

export const apiLinePriceApprove = (data: {
    id: number
    status: string
    comment: string
    user_id: number
}) => {
    return request.post({ url: '/travel.line_price/updateStatus', data })
}